﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserInBlogFriendGroupEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.Blog.UserInBlogFriendGroupEdit" %>
<%@ Import Namespace="Telerik.Web.UI" %>
<owc:OwDetailsView ID="UserInFriendGroupEditDv" runat="server" AutoGenerateRows="False"
    DataKeyNames="UsersInBlogFriendGroupsID" DataSourceID="UsersInBlogFriendGroupsOds"
    OwNotificationID="" EnableModelValidation="True">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend><span class="titleLegen">
                        <owc:OwR ID="ExtInfoOwR" runat="server" OwText="ExtInfo"></owc:OwR>
                    </span></legend>
                    <div>
                        <table style="width: 100%">
                            <tr>
                                <td align="left">
                                    <owc:OwR ID="BlogFriendGroupOwR" runat="server" OwText="BlogFriendGroup" OwSuffix=":"></owc:OwR>
                                </td>
                                <td align="left">
                                    <owc:OwComboBox ID="BlogFriendGroupCbb" SkinID="owComboBox" runat="server" DataTextField="Name" DataValueField="BlogFriendGroupID"
                                        DataSourceID="BlogFiendGroupOds" AppendDataBoundItems="true" SelectedValue='<%# Bind("BlogFriendGroupID") %>'>
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <owc:OwR ID="UserNameOwR" runat="server" OwText="UserName" OwSuffix=":"></owc:OwR>
                                </td>
                                <td align="left">
                                    <%--<owc:OwComboBox ID="UserNameCbb" runat="server" AppendDataBoundItems="true"  SelectedValue='<%# DataBinder.Eval(Container.DataItem,"UserID") %>' 
                                    >--%>
                                    <owc:OwComboBox ID="UserNameCbb" runat="server" AppendDataBoundItems="True" SelectedValue='<%# Bind("UserID") %>'
                                        DataSourceID="UsersInBlogFriendGroupsOds" OnInit="UserNameCbb_OnInit">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Literal ID="DeletedLabel" runat="server" Text="<%$ OwR: Delete%>" />:
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="IsDeletedCheckBox" runat="server" Checked='<%#Bind("IsDeleted")%>'
                                        CssClass="HiddenText" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Literal ID="ApproveLiteral" runat="server" Text="<%$ OwR: Approve%>" />:
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="IsAprrovedCheckBox" runat="server" Checked='<%#Bind("IsApproved")%>'
                                        Text="" CssClass="HiddenText" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </InsertItemTemplate>
            <EditItemTemplate>
                <fieldset>
                    <legend><span class="titleLegen">
                        <owc:OwR ID="ExtInfoOwR" runat="server" OwText="ExtInfo"></owc:OwR>
                    </span></legend>
                    <div>
                        <table style="width: 100%">
                            <tr>
                                <td align="left">
                                    <owc:OwR ID="BlogFriendGroupOwR" runat="server" OwText="BlogFriendGroup" OwSuffix=":"></owc:OwR>
                                </td>
                                <td align="left">
                                    <owc:OwComboBox ID="BlogFriendGroupCbb" SkinID="owComboBox" runat="server" DataTextField="Name"
                                        DataValueField="BlogFriendGroupID" DataSourceID="BlogFiendGroupOds" AppendDataBoundItems="true"
                                        SelectedValue='<%# Bind("BlogFriendGroupID") %>'>
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <owc:OwR ID="UserNameOwR" runat="server" OwText="UserName" OwSuffix=":"></owc:OwR>
                                </td>
                                <td align="left">
                                    <owc:OwComboBox ID="UserNameCbb" runat="server" AppendDataBoundItems="true" SelectedValue='<%# Bind("UserID") %>'
                                        DataSourceID="UsersInBlogFriendGroupsOds" OnInit="UserNameCbb_OnInit">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Literal ID="DeletedLabel" runat="server" Text="<%$ OwR: Delete%>" />:
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="IsDeletedCheckBox" runat="server" Checked='<%#Bind("IsDeleted")%>'
                                        CssClass="HiddenText" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Literal ID="ApproveLiteral" runat="server" Text="<%$ OwR: Approve%>" />:
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="IsAprrovedCheckBox" runat="server" Checked='<%#Bind("IsApproved")%>'
                                        Text="" CssClass="HiddenText" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource runat="server" ID="UsersInBlogFriendGroupsOds" DataObjectTypeName="Micronet.OpenWeb.Entity.OwUsersInBlogFriendGroupsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwUsersInBlogFriendGroupsBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="usersInBlogFriendGroupsID" QueryStringField="<%$ Ow:OwConstants.QueryString.ID %>" />
    </SelectParameters>
</owc:OwObjectDataSource>
<owc:OwObjectDataSource runat="server" ID="BlogFiendGroupOds" DataObjectTypeName="Micronet.OpenWeb.Entity.OwBlogFriendGroupsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwBlogFriendGroupsBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </SelectParameters>
</owc:OwObjectDataSource>
